package com.yu.footballpromotionliveadmin.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ActivityTypeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public ActivityTypeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andActnoIsNull() {
            addCriterion("actno is null");
            return (Criteria) this;
        }

        public Criteria andActnoIsNotNull() {
            addCriterion("actno is not null");
            return (Criteria) this;
        }

        public Criteria andActnoEqualTo(String value) {
            addCriterion("actno =", value, "actno");
            return (Criteria) this;
        }

        public Criteria andActnoNotEqualTo(String value) {
            addCriterion("actno <>", value, "actno");
            return (Criteria) this;
        }

        public Criteria andActnoGreaterThan(String value) {
            addCriterion("actno >", value, "actno");
            return (Criteria) this;
        }

        public Criteria andActnoGreaterThanOrEqualTo(String value) {
            addCriterion("actno >=", value, "actno");
            return (Criteria) this;
        }

        public Criteria andActnoLessThan(String value) {
            addCriterion("actno <", value, "actno");
            return (Criteria) this;
        }

        public Criteria andActnoLessThanOrEqualTo(String value) {
            addCriterion("actno <=", value, "actno");
            return (Criteria) this;
        }

        public Criteria andActnoLike(String value) {
            addCriterion("actno like", value, "actno");
            return (Criteria) this;
        }

        public Criteria andActnoNotLike(String value) {
            addCriterion("actno not like", value, "actno");
            return (Criteria) this;
        }

        public Criteria andActnoIn(List<String> values) {
            addCriterion("actno in", values, "actno");
            return (Criteria) this;
        }

        public Criteria andActnoNotIn(List<String> values) {
            addCriterion("actno not in", values, "actno");
            return (Criteria) this;
        }

        public Criteria andActnoBetween(String value1, String value2) {
            addCriterion("actno between", value1, value2, "actno");
            return (Criteria) this;
        }

        public Criteria andActnoNotBetween(String value1, String value2) {
            addCriterion("actno not between", value1, value2, "actno");
            return (Criteria) this;
        }

        public Criteria andActnameIsNull() {
            addCriterion("actname is null");
            return (Criteria) this;
        }

        public Criteria andActnameIsNotNull() {
            addCriterion("actname is not null");
            return (Criteria) this;
        }

        public Criteria andActnameEqualTo(String value) {
            addCriterion("actname =", value, "actname");
            return (Criteria) this;
        }

        public Criteria andActnameNotEqualTo(String value) {
            addCriterion("actname <>", value, "actname");
            return (Criteria) this;
        }

        public Criteria andActnameGreaterThan(String value) {
            addCriterion("actname >", value, "actname");
            return (Criteria) this;
        }

        public Criteria andActnameGreaterThanOrEqualTo(String value) {
            addCriterion("actname >=", value, "actname");
            return (Criteria) this;
        }

        public Criteria andActnameLessThan(String value) {
            addCriterion("actname <", value, "actname");
            return (Criteria) this;
        }

        public Criteria andActnameLessThanOrEqualTo(String value) {
            addCriterion("actname <=", value, "actname");
            return (Criteria) this;
        }

        public Criteria andActnameLike(String value) {
            addCriterion("actname like", value, "actname");
            return (Criteria) this;
        }

        public Criteria andActnameNotLike(String value) {
            addCriterion("actname not like", value, "actname");
            return (Criteria) this;
        }

        public Criteria andActnameIn(List<String> values) {
            addCriterion("actname in", values, "actname");
            return (Criteria) this;
        }

        public Criteria andActnameNotIn(List<String> values) {
            addCriterion("actname not in", values, "actname");
            return (Criteria) this;
        }

        public Criteria andActnameBetween(String value1, String value2) {
            addCriterion("actname between", value1, value2, "actname");
            return (Criteria) this;
        }

        public Criteria andActnameNotBetween(String value1, String value2) {
            addCriterion("actname not between", value1, value2, "actname");
            return (Criteria) this;
        }

        public Criteria andActdescIsNull() {
            addCriterion("actdesc is null");
            return (Criteria) this;
        }

        public Criteria andActdescIsNotNull() {
            addCriterion("actdesc is not null");
            return (Criteria) this;
        }

        public Criteria andActdescEqualTo(String value) {
            addCriterion("actdesc =", value, "actdesc");
            return (Criteria) this;
        }

        public Criteria andActdescNotEqualTo(String value) {
            addCriterion("actdesc <>", value, "actdesc");
            return (Criteria) this;
        }

        public Criteria andActdescGreaterThan(String value) {
            addCriterion("actdesc >", value, "actdesc");
            return (Criteria) this;
        }

        public Criteria andActdescGreaterThanOrEqualTo(String value) {
            addCriterion("actdesc >=", value, "actdesc");
            return (Criteria) this;
        }

        public Criteria andActdescLessThan(String value) {
            addCriterion("actdesc <", value, "actdesc");
            return (Criteria) this;
        }

        public Criteria andActdescLessThanOrEqualTo(String value) {
            addCriterion("actdesc <=", value, "actdesc");
            return (Criteria) this;
        }

        public Criteria andActdescLike(String value) {
            addCriterion("actdesc like", value, "actdesc");
            return (Criteria) this;
        }

        public Criteria andActdescNotLike(String value) {
            addCriterion("actdesc not like", value, "actdesc");
            return (Criteria) this;
        }

        public Criteria andActdescIn(List<String> values) {
            addCriterion("actdesc in", values, "actdesc");
            return (Criteria) this;
        }

        public Criteria andActdescNotIn(List<String> values) {
            addCriterion("actdesc not in", values, "actdesc");
            return (Criteria) this;
        }

        public Criteria andActdescBetween(String value1, String value2) {
            addCriterion("actdesc between", value1, value2, "actdesc");
            return (Criteria) this;
        }

        public Criteria andActdescNotBetween(String value1, String value2) {
            addCriterion("actdesc not between", value1, value2, "actdesc");
            return (Criteria) this;
        }

        public Criteria andActbegindateIsNull() {
            addCriterion("actbegindate is null");
            return (Criteria) this;
        }

        public Criteria andActbegindateIsNotNull() {
            addCriterion("actbegindate is not null");
            return (Criteria) this;
        }

        public Criteria andActbegindateEqualTo(Date value) {
            addCriterion("actbegindate =", value, "actbegindate");
            return (Criteria) this;
        }

        public Criteria andActbegindateNotEqualTo(Date value) {
            addCriterion("actbegindate <>", value, "actbegindate");
            return (Criteria) this;
        }

        public Criteria andActbegindateGreaterThan(Date value) {
            addCriterion("actbegindate >", value, "actbegindate");
            return (Criteria) this;
        }

        public Criteria andActbegindateGreaterThanOrEqualTo(Date value) {
            addCriterion("actbegindate >=", value, "actbegindate");
            return (Criteria) this;
        }

        public Criteria andActbegindateLessThan(Date value) {
            addCriterion("actbegindate <", value, "actbegindate");
            return (Criteria) this;
        }

        public Criteria andActbegindateLessThanOrEqualTo(Date value) {
            addCriterion("actbegindate <=", value, "actbegindate");
            return (Criteria) this;
        }

        public Criteria andActbegindateIn(List<Date> values) {
            addCriterion("actbegindate in", values, "actbegindate");
            return (Criteria) this;
        }

        public Criteria andActbegindateNotIn(List<Date> values) {
            addCriterion("actbegindate not in", values, "actbegindate");
            return (Criteria) this;
        }

        public Criteria andActbegindateBetween(Date value1, Date value2) {
            addCriterion("actbegindate between", value1, value2, "actbegindate");
            return (Criteria) this;
        }

        public Criteria andActbegindateNotBetween(Date value1, Date value2) {
            addCriterion("actbegindate not between", value1, value2, "actbegindate");
            return (Criteria) this;
        }

        public Criteria andActenddateIsNull() {
            addCriterion("actenddate is null");
            return (Criteria) this;
        }

        public Criteria andActenddateIsNotNull() {
            addCriterion("actenddate is not null");
            return (Criteria) this;
        }

        public Criteria andActenddateEqualTo(Date value) {
            addCriterion("actenddate =", value, "actenddate");
            return (Criteria) this;
        }

        public Criteria andActenddateNotEqualTo(Date value) {
            addCriterion("actenddate <>", value, "actenddate");
            return (Criteria) this;
        }

        public Criteria andActenddateGreaterThan(Date value) {
            addCriterion("actenddate >", value, "actenddate");
            return (Criteria) this;
        }

        public Criteria andActenddateGreaterThanOrEqualTo(Date value) {
            addCriterion("actenddate >=", value, "actenddate");
            return (Criteria) this;
        }

        public Criteria andActenddateLessThan(Date value) {
            addCriterion("actenddate <", value, "actenddate");
            return (Criteria) this;
        }

        public Criteria andActenddateLessThanOrEqualTo(Date value) {
            addCriterion("actenddate <=", value, "actenddate");
            return (Criteria) this;
        }

        public Criteria andActenddateIn(List<Date> values) {
            addCriterion("actenddate in", values, "actenddate");
            return (Criteria) this;
        }

        public Criteria andActenddateNotIn(List<Date> values) {
            addCriterion("actenddate not in", values, "actenddate");
            return (Criteria) this;
        }

        public Criteria andActenddateBetween(Date value1, Date value2) {
            addCriterion("actenddate between", value1, value2, "actenddate");
            return (Criteria) this;
        }

        public Criteria andActenddateNotBetween(Date value1, Date value2) {
            addCriterion("actenddate not between", value1, value2, "actenddate");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}